# 股价计算
name = "传智播客"
stock_code = "003032"
stock_price = 19.99
daily_growth = 1.2
growth_days = 7
totall_price = stock_price * daily_growth ** growth_days
print(f"公司:{name}，股票代码：{stock_code},当前股价：{stock_price}")
# print(f"每日增长系数:{daily_growth}，经过{growth_days}天的增长，股价达到了{stock_price * daily_growth * growth_days}")
print("每日增长系数:%.1f,经过 %d 天的增长,股价达到了%.2f" %(daily_growth,growth_days,totall_price) )
